<%@ page contentType="text/html;charset=utf-8" language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%> 
<html:html> 
<logic:notEmpty name="Tasks">
	<head>
		<META http-equiv=Content-Type content="text/html; charset=utf-8">
		<LINK href="../styles/sciencee.css"  type=text/css rel=stylesheet>
		<style type="text/css"></style>
		<title>CGProject</title>
		<html:base/>
	</head>
	<body>
		<table border="0" width="100%" cellspacing="1" id="table1" height="59" style="border: 1px solid #C0C0C0">
			<tr>
					<td height="25" align="left" bgcolor="#EEF2F7" colspan="6" width="100%">&nbsp;<b>TasksLists</b></td>
				</tr>
				<tr>
					<td height="29" align="left" width="18%" style="border-right:1px dotted #C0C0C0; border-bottom:1px dotted #C0C0C0; ">
					&nbsp;<b><bean:message key="task"/></b></td>
					<td height="29" align="left" width="32%" style="border-right:1px dotted #C0C0C0; border-bottom:1px dotted #C0C0C0; ">
					<b>&nbsp;<bean:message key="taskdes"/></b></td>
					<td height="29" align="left" width="15%" style="border-right:1px dotted #C0C0C0; border-bottom:1px dotted #C0C0C0; ">
					<b>&nbsp;<bean:message key="make"/></b></td>
					<td height="29" align="left" width="8%" style="border-right:1px dotted #C0C0C0; border-bottom:1px dotted #C0C0C0; ">
					<b>&nbsp;<bean:message key="planstarttime"/></b></td>
					<td height="29" align="left" width="8%" style="border-right:1px dotted #C0C0C0; border-bottom:1px dotted #C0C0C0; ">
					<b>&nbsp;<bean:message key="expectedhours"/></b></td>
					<td height="29" align="left" width="10%" style="border-right:1px dotted #C0C0C0; border-bottom:1px dotted #C0C0C0; ">
					&nbsp;<b><bean:message key="task.status"/></b></td>
					
				</tr>
			<logic:iterate id="element" name="Tasks">
				<tr>
					<td height="29" align="left" width="18%" style="border-right:1px dotted #C0C0C0; border-bottom:1px dotted #C0C0C0; ">
					&nbsp;<b><html:link page="/detail.do" paramId="taskId" paramName="element" paramProperty="taskId"><u><bean:write name="element" property="taskName"/></u></html:link></b></td>
					<td height="29" align="left" width="32%" style="border-right:1px dotted #C0C0C0; border-bottom:1px dotted #C0C0C0; ">
					&nbsp;<bean:write name="element" property="taskDescription"/></td>
					<td height="29" align="left" width="15%" style="border-right:1px dotted #C0C0C0; border-bottom:1px dotted #C0C0C0; ">
					&nbsp;<bean:write name="element" property="make.makeName"/></td>
					<td height="29" align="left" width="8%" style="border-right:1px dotted #C0C0C0; border-bottom:1px dotted #C0C0C0; ">
					&nbsp;<bean:write name="element" property="ve"/></td>
					<td height="29" align="left" width="8%" style="border-right:1px dotted #C0C0C0; border-bottom:1px dotted #C0C0C0; ">
					&nbsp;<bean:write name="element" property="exceptHours"/></td>
					<td height="29" align="left" width="10%" style="border-right:1px dotted #C0C0C0; border-bottom:1px dotted #C0C0C0; ">
					&nbsp;
		<script language=javascript>
			var s=top.changeColor("<bean:write name="element" property="status.statusDisplay"/>");
			document.write(s);
		</script>
		</td>		
				</tr>
			</logic:iterate>

		</table>
	</body>
</logic:notEmpty>
</html:html>